projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
939ed58
)
scalebutton: Set GDK_SCROLL_MASK explicitly
author
Carlos Garnacho
<carlosg@gnome.org>
Thu, 23 Feb 2012 13:47:13 +0000
(14:47 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 1 Mar 2012 21:29:01 +0000
(16:29 -0500)
selecting for button press/release doesn't suffice anymore to
get scroll events.
gtk/gtkscalebutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkscalebutton.c
b/gtk/gtkscalebutton.c
index fa6c57f44547586703f431285388bf4df84614f4..b91c6792cb0d607120e6a0a2482ca3d3c4a9fec9 100644
(file)
--- a/
gtk/gtkscalebutton.c
+++ b/
gtk/gtkscalebutton.c
@@
-415,6
+415,8
@@
gtk_scale_button_init (GtkScaleButton *button)
/* the scale */
priv->scale = gtk_scale_button_scale_new (button);
gtk_container_add (GTK_CONTAINER (priv->box), priv->scale);
+
+ gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
}
static GObject *